package com.example.job_backend.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.job_backend.mapper.EmploymentStatusMapper;
import com.example.job_backend.model.EmploymentStatus;
import com.example.job_backend.service.EmploymentStatusService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmploymentStatusImpl extends ServiceImpl<EmploymentStatusMapper, EmploymentStatus> implements EmploymentStatusService {
    @Resource
    private EmploymentStatusMapper employmentStatusMapper;

    @Override
    public List<EmploymentStatus> getEmployStatusByUsername(String username) {
        QueryWrapper<EmploymentStatus> wrapper = new QueryWrapper<>();
        wrapper.eq("student_id", username);
        return employmentStatusMapper.selectList(wrapper);
    }
}
